package com.mcp.converter.shared.exception;

/**
 * MyBatis XML分析异常
 * 
 * @author zengxiong
 */
public class MybatisAnalysisException extends RuntimeException {
    
    private final String code;
    
    public MybatisAnalysisException(String message) {
        super(message);
        this.code = "MYBATIS_ANALYSIS_ERROR";
    }
    
    public MybatisAnalysisException(String message, Throwable cause) {
        super(message, cause);
        this.code = "MYBATIS_ANALYSIS_ERROR";
    }
    
    public MybatisAnalysisException(String code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }
    
    public String getCode() {
        return code;
    }
} 